<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><decorator:title default="顺风车 --- 我做主"/></title>
<!--页面公共样式-->
<link href="${ctx}/css/myhome-css/home_public.css" rel="stylesheet" type="text/css" />
<!--页面顶部状态栏样式-->
<link href="${ctx}/css/myhome-css/home_top.css" rel="stylesheet" type="text/css" />
<!--页面NAV下面标题栏样式-->
<link href="${ctx}/css/myhome-css/home_title.css" rel="stylesheet" type="text/css" />
<!--页面左栏样式-->
<link href="${ctx}/css/myhome-css/home_leftnavi.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="${ctx}/js/jquery.js" type="text/javascript"></script>
<script language="javascript" src="${ctx}/js/myhome-js/comm.js"></script>
<script language="javascript" charset="gb2312"  src="${ctx}/js/myhome-js/action_090226.js"></script>
<decorator:head />
</head>
<body>

    <div class="ddnewhead_operate">
  	<div class="ddindex_head_welcome_rim">
    <div class="ddindex_head_welcome">
      <div name="__ddnav_menu" class="ddindex_head_little_navi"> 
      	<img src="${ctx }/images/myhome-img/ddnewhead_operate_icon.gif" />
        <div class="little_n">
        	<a href="${ctx}/shop/shopping-cart.action" target="_blank">购物车<span id="cart_items_count"><s:if test="#session.shopCart!=null">(<s:property value="#session.shopCart.amount"/>)</s:if></span></a> | 
        	<a href="#" >本站推荐</a> | <a href="#" target="_blank">团购</a>  | 
        </div><a id="a_otherchannel" onmouseover="showgaoji(this);" onmouseout="hideotherchannel();" class="ddindex_head_little_arrow" href="#" target="_blank">
        	<span>我的商铺</span>
            <img id="img_otherchannel" src="${ctx }/images/myhome-img/ddnewhead_arrow_up.gif" /></a>
            <div class="little_n">| <a href="#" target="_blank">帮助</a></div>
      </div>
      <p class="ddindex_head_welcome_p" id="nickname">
      	<b>欢迎您，<s:property value="#session.niagara_security_session_login"/></b>&nbsp;&nbsp;&nbsp;
      	[<a name="ddnav_signout" class="b" href="${ctx}/niagara_security_loginout" target="_self">退出登录</a>]
      </p>
    </div>
  </div>
</div>
<div id="otherChannel"  name="__ddnav_mydd_detail" onmouseout="hideotherchannel();" onmouseover="showgaoji(document.getElementById('a_otherchannel'))" style="display:none;position:absolute;left:0px;top:0px;z-index:10000;" class="ddnewhead_operate_popup">
  <div class="ddnewhead_operate_shadow">
    <div class="ddindex_head_ddshouye">
      <ul>
        <li><a href="#" target="_blank">我的订单</a></li>
        <div class="ddnewhead_operate_popup_dashed"></div>
        <li><a href="#" target="_blank">帐户余额</a></li>
        <div class="ddnewhead_operate_popup_dashed"></div>
        <li><a href="#" target="_blank">我发的货</a></li>
        <div class="ddnewhead_operate_popup_dashed"></div>
        <li><a href="#" target="_blank">我的朋友</a></li>
        <div class="ddnewhead_operate_popup_dashed"></div>
        <li><a href="#" target="_blank">我的暂存架</a></li>
      </ul>
    </div>
  </div>
  <div class="ddnewhead_operate_shadow02"></div>
</div>
<iframe src="" name="usernameifr" id="usernameifr" width="0" height="0" style="display:none;"></iframe>
<!-- nav -->
<%--<page:apply-decorator name="home-nav"></page:apply-decorator>--%>
<link href="${ctx}/css/index-css/base.css" rel="stylesheet" type="text/css" />
<page:apply-decorator name="portal-nav"></page:apply-decorator>
<style>
.page_nav{
	background-color:#FFF;
}
</style>
<!--整个主要区域放在表单中-->
<!--<form name="form1" method="post" action="#" id="form1">
<input type="hidden" name="#" id="#" value="#" />-->
<!--操作区-->

  <div class="mdtitle">
    <div class="mdtitle_cont">
      <div class="mdtitle_img">
      	<a href="myhome.action">
        	<img src="${ctx}/images/myhome-img/wddd_pic.gif" />
        </a>
      </div>
      <div class="mdtitle_lasttime">
      	<span class="gray666" id="loginfospan">欢迎您回来，快来整理一下你的车库吧！^-^</span>
      </div>      
      <div class="mdtitle_navi">
        <ul class="mdtitle_ul">
          <li><a href="#">购物订单<span id="payspan" class="font_b">(0)</span></a></li>
          <li><a href="#">发货订单<span id="receiptspan" class="font_b">(0)</span></a></li>
          <li><a href="#">留言动态<span id="messagespan" class="font_b">(0)</span></a></li>
          <!--
          <li><a href="#">写评论<span id="reviewspan" class="font_b">(0)</span></a></li>
          -->
        </ul>
      </div>
    </div>
    <div class="mdtitle_shadow"></div>
  </div>
  
  <div class="main_frame">
    <!--左栏-->
    <div class="mdlnavi">
      <div class="doc_left_gr">
        <div class="left_gr_pic">
        	<img id="picimg" width='35' height='35' src="${ctx}/images/myhome-img/cool.png" />
        </div>
        <div class="left_gr_text">
          <div class="my_nickname" id="usernamediv">wangli</div>
          <p class="my_position" id="locdiv">2011/4/09</p>
          <div class="my_message" id="iddiv">杭州电子科技大学</div>
          <div class="my_message1">专业:<span class="font_b" id="pointspan" >软件工程</span></div>
          <p><a class="my_index" href="${ctx}/shop/shop-home.action?id=1" target="_blank"></a></p>
        </div>
        <div class="clear"></div>
      </div>
      <div id="div_mymangage" 
style=" display:none;position:absolute;left:0px;top:0px;z-index:10000;" class="my_mangage">
        <ul>
          <li><a id="urlFirst" href="#">我的首页</a></li>
          <li><a id="urlReview" href="#">我的评论</a></li>
          <li><a id="urlBookSubtype" href="#">我的货架</a></li>
        </ul>
      </div>
      
      <div class="left_dd">
        <div class="title">我要淘二手自行车！</div>
        <ul>
          <li class="upload-book-input">
          	<a name="mymoneys" href="upload-book!input.action" target="_parent">上传新商品</a>
          	<img src="${ctx}/images/myhome-img/new.gif" style="_margin-top:5px" />
          </li>
          <li class="book-manager"><a name="mycoupons" href="book-manager.action" target="_parent">我的车库</a></li>
          <li class="selling-order"><a name="myorders" href="selling-order.action" target="_parent">销售订单</a></li>
          <li class="selled-log"><a name="mylog" href="selled-log.action" target="_parent">销售记录</a></li>
        </ul>
      </div>
      
      <div class="left_dd">
        <div class="title">购车管理</div>
        <ul>
          <li class="shopping-order"><a name="myallorders" href="shopping-order.action" target="_parent">购物订单</a>
          	<img src="${ctx}/images/myhome-img/updated.gif" align="texttop" style="margin-top:0px; margin-left:3px;"  />
          </li>
          <li class="book-order"><a name="mydemand" href="book-order.action" target="_parent">我的求购信息</a></li>
          <li class="address"><a name="myaddress" href="address.action" target="_parent">收货地址簿</a></li>
          <!--
          <li class="lilast">
          	<a name="mypaymenthistory" href="#" target="_parent">订单支付历史</a> 
            <img src="${ctx}/images/myhome-img/new.gif" style="_margin-top:5px" />
          </li>
          <li class="li_up"><a name="mybalance" href="#" target="_parent">账户余额</a>
          	<img src="${ctx}/images/myhome-img/updated.gif" align="texttop" style="margin-top:0px; margin-left:3px;"  />
          </li>
          -->
        </ul>
      </div>
      
      <!--
      <div class="left_xf">
        <div class="title"><a href="#">收藏架</a></div>
      </div>
      -->
      
      <div class="left_dd">
        <div class="title">个人综合管理</div>
        <ul>
          <li class="favorite-book"><a name="myfavorite" href="favorite-book.action" target="_parent">二手物品收藏</a></li>
          <li class="friends"><a name="myinteresting" href="friends.action" target="_parent">我关注的好友</a></li>
          <li class="guest-book-question"><a name="myreview" href="guest-book!question.action" target="_parent">我的问答</a></li>
          <li class="guest-book"><a name="myboard" href="guest-book.action" target="_parent">我的留言板</a></li>
        </ul>
      </div>
      
      <!--
      <div class="left_dd">
        <div class="title">问答管理</div>
        <ul>
          <li class=""><a href="#">我的问答</a></li>
          <li class=""><a href="#">商家问答</a></li>
        </ul>
      </div>
      -->
      
      <div class="left_dd">
        <div class="title">个人信息管理</div>
        <ul>
          <li class="user-detail-input"><a name="profileleft" href="${ctx}/home/user-detail!input.action" target="_parent">编辑个人档案</a></li>
          <li class="user-detail-email"><a name="myemail" href="${ctx}/home/user-detail!email.action" target="_parent">修改一卡通账号</a></li>
          <li class="user-detail-password"><a name="mypassword" href="${ctx}/home/user-detail!password.action" target="_parent">修改密码</a></li>
        </ul>
      </div>
      <script language="javascript" type="text/javascript">
      	var url = document.URL;
		if(url.lastIndexOf("!") != -1){
			url = url.replace("!","-");
			//var nowClass1 = url.substring(url.lastIndexOf("/")+1,url.lastIndexOf("!"));
		}else{
			//var nowClass1 = url.substring(url.lastIndexOf("/")+1,url.lastIndexOf("."));
		}
		var nowClass1 = url.substring(url.lastIndexOf("/")+1,url.lastIndexOf("."));
		//alert(nowClass1);
      	if(nowClass1 != "myhome"){
      		var nowClass = "."+nowClass1;
      		//alert($(nowClass)[0]);
      		$(nowClass)[0].className = "linow";
      	};
      	function logout(){
          	url = "${ctx}/niagara_security_loginout";
          	document.location = url;
      	}
      </script>
      <!--个人信息结束-->
      <div style="margin:20px 0; text-align:center">
      <!--可以做成按钮的样子-->
      <button onclick="logout();">退出登录</button>
<!--   
<input type="button" onclick="Logout();" name="Submit" value="退出登录" />
<a href="${ctx}/niagara_security_loginout">退出登录</a>
-->
      </div>
    </div>
    
    <!--右栏开始-->
    <decorator:body />
    <!--右栏结束-->
    
    <div style="clear:both;"></div>
    <div class="empty_box_left"></div>
  </div>
  <!-- footer -->
  <page:apply-decorator name="home-footer"/>
  
</body>
</html>
